package com.example.data.permission.entity.pojo;

import com.example.data.permission.entity.Role;
import com.example.data.permission.mp.permission.DataPermission;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * Created by TD on 2021/7/21
 */
@Data
@ToString
public class UserInfoDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long uid;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "用户类型（0是超级管理）")
    private Long userTypeId;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    @ApiModelProperty(value = "门店 ID")
    private Long shopId;

    @ApiModelProperty(value = "角色集合")
    private List<Role> roleList;

    @ApiModelProperty(value = "数据权限集合")
    private List<DataPermission> dataPermissionList;
}
